package com.ctrip.corp.obt.shard.infrastructure.etcd;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

/**
 * @author xshen5
 * @desc etcd数据源信息
 */
@Data
public class EtcdShardSource {

    /**
     * 主键id
     */
    private String id;

    /**
     * 分片参数名
     */
    @JsonProperty("tenant_id")
    private String tenantId;

    // todo 兼容老逻辑，当platform兼容后，去除
    @JsonProperty("driver_class")
    private String driverClassName;

    private String url;

    private String username;

    private String password;

    @JsonProperty("shard_source_metas")
    private List<EtcdShardSourceMeta> shardSourceMetas;
}
